<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('', function () {
    return '嘤嘤嘤嘤嘤';
});

//excel导出
Route::get('export','api/Excel/export');

//微信用户
Route::group('wxpay',function(){
    Route::get('getCode','api/Wxpay/getCode');                       //获取Token
});

//微信用户
Route::group('wechat',function(){
    Route::get('getAccessToken','api/WechatUser/getAccessToken');                       //获取Token
    Route::get('getFanIdList','api/WechatUser/getFanIdList');                           //获取粉丝id列表
    Route::get('getFanInfo','api/WechatUser/getFanInfo');                               //某一粉丝信息
    Route::get('sendMsgToOne','api/WechatUser/sendMsgToOne');                           //发送消息给某一用户
    Route::get('getAllTemplateMsg','api/WechatUser/getAllTemplateMsg');                 //获取所有的模板消息
    Route::get('sendTemplateMsg','api/WechatUser/sendTemplateMsg');
    Route::get('getSignPackage','api/WechatUser/getSignPackage');                       //微信JS-SDK的config配置
});

//邮件相关
Route::get('sendMail','api/Mail/sendMail');

//登录相关
Route::group('login',function(){
    Route::post('','api/WxLogin/login');                                    //登录
    Route::post('register','api/WxLogin/register');                         //注册
    Route::post('sms','api/WxLogin/smsCode');                               //短信获取
});

//我的项目相关
Route::group('myproject',function(){
    Route::post('','api/MyProject/studentgain');
    Route::post('teacher','api/MyProject/teachergain');
    Route::post('handle','api/MyProject/handle');
    Route::post('detail','api/MyProject/detail');
});

//我的消息相关
Route::group('mymessage',function(){
    Route::post('','api/MyMessage/gain');
});

//我的信息相关
Route::group('myuser',function(){
    Route::post('','api/MyUser/gain');
    Route::post('handle','api/MyUser/handle');
});

//院系及专业
Route::get('college2class','api/Base/college2Class');

//token检验
Route::post('token/gain', 'api/WxToken/getToken');          //获取用户token
Route::post('token/verify', 'api/WxToken/verifyToken');     //获取用户token

return [

];
